import { RouteRecordRaw } from 'vue-router'

export function importRoute() {
  const routes: RouteRecordRaw[] = []

  const homeRoutes: any = import.meta.globEager('../router/home-children-route/**/**.ts')
  routes.push({
    path: '/home/win/:wid',
    components: {

    }
  })
  for (const route in homeRoutes) {
    const path = homeRoutes[route].default.path
    routes[0].components![path.split('/').pop()] = homeRoutes[route].default.component
  }
  return routes
}
